package com.zhoukun.nacos.myfallback;

import com.zhoukun.cloud.CommentRest;

/**
 * @author zhoukun 86547462@qq.com
 * @version 1.0
 * @date 2020/11/2 0:40
 */
public class CustomeeFallback {
    public static CommentRest globlfallback1(Throwable e)
    {
        return  new CommentRest().setCode(500).setMessage("用户自定义1===》fallback实例："+e.getMessage()).setData("服务请求失败！");
    }
    public static CommentRest globlfallback2(Throwable e)
    {
        return  new CommentRest().setCode(500).setMessage("用户自定义2===》fallback实例："+e.getMessage()).setData("服务请求失败！");
    }
}
